x86/mm: clean up SHARED_M2P{,_ENTRY} uses
authorJan Beulich <jbeulich@suse.com>
Tue, 13 Feb 2018 16:28:36 +0000 (17:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Feb 2018 16:28:36 +0000 (17:28 +0100)
commit10ce76b8e962998cfb9e9edf19953cceb7793852
treeeceacb38cf37a08181b9bb4a16e8b9765da8382d
parent1a42ffa3476ab433da9dc27c6d36f051b70592ed
x86/mm: clean up SHARED_M2P{,_ENTRY} uses

Stop open-coding SHARED_M2P() and drop a pointless use of it from
paging_mfn_is_dirty() (!VALID_M2P() is a superset of SHARED_M2P()) and
another one from free_page_type() (prior assertions render this
redundant).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/paging.c